<!DOCTYPE html>
<html lang="zh-cn">

<head>

  <meta content="text/html;charset=utf-8" http-equiv="content-type">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

  <title>${orgName} - 产品编辑</title>

  <!-- Bootstrap Core CSS -->
<!-- MetisMenu CSS -->
<!-- Custom CSS -->
<!-- Custom Fonts -->
  <!--webuploader 引入CSS-->
  <!-- Bootstrap DateRangePicker CSS -->
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn"t work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->

    <link rel="stylesheet" href="/server/r/bower_components/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/server/r/bower_components/metisMenu/dist/metisMenu.min.css" />
    <link rel="stylesheet" href="/server/r/static/css/sb-admin-2_e507c2b.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/font-awesome/css/font-awesome.min.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/static/css/hxz/common_2baa698.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/bower_components/select2/dist/css/select2.min.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/alertify/themes/alertify.core.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/alertify/themes/alertify.bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/fex-webuploader/dist/webuploader.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/vendor/umeditor/themes/default/css/umeditor.css" />
    <link rel="stylesheet" href="/server/r/bower_components/bootstrap-daterangepicker/daterangepicker.css" />
</head>

<body>

<div id="wrapper">
  <input id="activity-id" type="hidden" value="${(activity.activityId)!''}"/>
  <input id="activity-type-id" type="hidden" value="${(activity.typeId)!''}">
  <#if episode??>
    <input id="episode-id" type="hidden" value="${(episode.episodeId)!''}"/>
    <input id="episode-status" type="hidden" value="${(episode.status)!''}"/>
    <input id="current-player-count" type="hidden" value="${(episode.playerCount)}"/>
  </#if>
  <input id="episode-meta-name" type="hidden" value="${filterRuler(activity.typeId,"episode_detail_title_head")!""}">
  <input id="voucher-send" type="hidden" value="0">
  <!-- Navigation -->
  <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">

    <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="index">${orgName}</a>
</div>
<!-- /.navbar-header -->

<ul class="nav navbar-top-links navbar-right">

    <!-- /.dropdown -->
    <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
            ${userName} <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
        </a>
        <ul class="dropdown-menu dropdown-user">
            <li><a href="/server/logout"><i class="fa fa-sign-out fa-fw"></i> 退出系统</a>
            </li>
        </ul>
        <!-- /.dropdown-user -->
    </li>
    <!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->

    <div class="navbar-default sidebar" role="navigation">
      <div class="sidebar-nav navbar-collapse">
        <ul class="nav" id="side-menu">
    <li>
        <a href="/server/index"><i class="fa fa-dashboard fa-fw"></i> 首页</a>
    </li>
    <#if authMenu("/verify/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="/server/verify">
                <i class="fa fa-check fa-fw"></i> 核销
            </a>
            <!-- /.nav-second-level -->
        </li>
    </#if>
    <#if authMenu("/activity/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-asterisk fa-fw"></i> 产品管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/activity-add"> 创建产品</a>
                </li>
                <li>
                    <a href="/server/activity-list"> 我的产品</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/player/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY0?exists||Session.ACTIVITY1?exists>
            <li>
                <a href="#"><i class="fa fa-male fa-fw"></i> 报名管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/player-list">报名查询</a>
                    </li>
                    <li>
                        <a href="/server/verifyRecord/list">核销记录</a>
                    </li>
                </ul>
            </li>
        </#if>
    </#if>

    <#if authMenu("/order/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-list-alt fa-fw"></i> 订单管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/order-list">订单查询</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>

        <#if authMenu("/ticket/*", Session.USER_PERMISSION?string)>
            <#if Session.ACTIVITY3?exists || Session.ACTIVITY6?exists>
                <li>
                    <a href="#"><i class="fa fa-ticket fa-fw"></i> 雪票管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="/server/ticket-list">数据统计</a>
                        </li>
                        <li>
                            <a href="/server/verify?type=6">雪票核销</a>
                        </li>
                        <li>
                            <a href="/server/ticket-verify-list">核销记录</a>
                        </li>
                    </ul>
                    <!-- /.nav-second-level -->
                </li>
            </#if>
        </#if>
    </#if>

    <#if authMenu("/hotel/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY7?exists>
            <li>
                <a href="#"><i class="fa fa-building fa-fw"></i> 酒店预订管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/hotel-order-list">酒店预订管理</a>
                    </li>
                    <li>
                        <a href="/server/hotel-verify-list">核销记录</a>
                    </li>
                </ul>
            </li>
        </#if>
    </#if>

    <#if authMenu("/coach/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY2?exists>
            <li>
                <a href="#"><i class="fa fa-users fa-fw"></i> 教练管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/coach-list"> 预约查询</a>
                    </li>
                    <li>
                        <a href="/server/verify?type=2">教学签到</a>
                    </li>
                    <li>
                        <a href="/server/coach-verify-list">核销记录</a>
                    </li>
                </ul>
                <!-- /.nav-second-level -->
            </li>
        </#if>
    </#if>

    <#if authMenu("/camp/*", Session.USER_PERMISSION?string)>
        <#if Session.ACTIVITY5?exists>
            <li>
                <a href="#"><i class="fa fa-trophy fa-fw"></i> 冬令营管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/server/camp-player-list"> 报名查询</a>
                    </li>
                </ul>
                <!-- /.nav-second-level -->
            </li>
        </#if>
    </#if>

    <#if authMenu("/finance/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-rmb fa-fw"></i> 财务管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/stream-list"> 交易流水</a>
                </li>
                <li>
                    <a href="/server/withdrawals-list">提现管理</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/customer/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-user-md fa-fw"></i> 会员管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/customer-list">会员查询</a>
                </li>
            </ul>
        </li>
    </#if>

    <#if authMenu("/comment/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-comments fa-fw"></i> 评价管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/comment-list">评价管理</a>
                </li>
            </ul>
        </li>
    </#if>

    <#if authMenu("/statistics/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-bar-chart fa-fw"></i> 统计<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/statistics/product/list">产品统计</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/marketing/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-key fa-fw"></i> 营销管理<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/marketing-list">营销活动</a>
                </li>
                <li>
                    <a href="/server/marketing-present-list">礼品列表</a>
                </li>
                <li>
                    <a href="/server/marketing-user-list">用户信息统计</a>
                </li>

            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

    <#if authMenu("/user/*", Session.USER_PERMISSION?string)>
        <li>
            <a href="#"><i class="fa fa-gear fa-fw"></i> 设置<span class="fa arrow"></span></a>
            <ul class="nav nav-second-level">
                <li>
                    <a href="/server/authority/user-list">用户&权限</a>
                </li>

                <li>
                    <a href="/server/user-profile">主办方信息</a>
                </li>
            </ul>
            <!-- /.nav-second-level -->
        </li>
    </#if>

</ul>
      </div>
      <!-- /.sidebar-collapse -->
    </div>
    <!-- /.navbar-static-side -->
  </nav>

  <div id="page-wrapper">
    <input type="hidden" id="message-content" value='${filterRuler(activity.typeId,"episode_detail_charge_message")!""}'/>
    <div class="row">
      <div class="col-lg-12">
        <h3 class="page-header">
          ${filterRuler(activity.typeId,"episode_detail_title_head")!""}
          <span class="subtitle">（${activity.title}）</span>
          <#if episode??>
            <#if episode.status == 0>
              <span class="label label-info font-small">
            <#elseif episode.status == 1>
              <span class="label label-success font-small">
            <#elseif episode.status == 2>
              <span class="label label-warning font-small">
            <#elseif episode.status == 3>
              <span class="label label-default font-small">
            <#elseif episode.status == 4>
              <span class="label label-info font-small">
            <#elseif episode.status == 5>
              <span class="label label-danger font-small">
            </#if>
            ${filterRuler(episode.status,"episode")!''}</span>
          </#if>
        </h3>
      </div>
    </div>
    <!-- /.row -->

    <div class="row">
      <div class="col-lg-6">
        <form id="episode-edit-form" role="form">
          <div class="form-group">
            <label class="control-label">名称：</label>
            <input type="text" class="form-control input-sm" name="episode-real-name" id="episode-real-name" placeholder="请输入名称，可不填"
                   style="width: 340px;">
          </div>

          <div class="form-group form-require" id="city-select-div">
            <label class="control-label">地点：</label>

            <div class="form-inline">
              <label class="radio-inline">
                <input id="china-select" name="locationType" type="radio" checked>国内
              </label>
              <label class="radio-inline">
                <input id="nation-select" name="locationType" type="radio">国外
              </label>
              <label class="radio-inline">
                <input id="ski-field-select" name="locationType" type="radio">雪场
              </label>
            </div>
            <div class="form-inline" id="city-select-area">
              <select class="form-control input-sm" name="provinceId" id="province_id"></select>
              <select class="form-control input-sm" name="cityId" id="city_id"></select>
              <select class="form-control input-sm" name="districtId" id="district_id"></select>
            </div>

            <div class="form-inline" style="display: none;" id="nation-select-area">
              <select id="select-nation"></select>
            </div>

            <div class="form-inline" style="display: none;" id="ski-field-select-area">
              <select id="select-ski-field"><option value="none" disabled="disabled">请选择雪场</option></select>

              <input id="select-ski" type="hidden"/>

              <input id="ski-hidden-is-ski" type="hidden"/>
              <input id="ski-hidden-cityId" type="hidden"/>
              <input id="ski-hidden-districtId" type="hidden"/>
              <input id="ski-hidden-provinceId" type="hidden"/>
            </div>

          </div>

          <div class="form-group form-require">
            <label class="control-label">详细地址：</label>
            <input type="text" class="form-control input-sm" name="location" id="episode-location" placeholder="请输入详细地址" style="width: 340px;">
          </div>

          <div class="form-group">
            <label class="control-label">联系人电话：</label>
            <input type="text" class="form-control input-sm" name="notice-phone" id="episode-phone" placeholder="请输入联系人手机号或座机号，可不填"
                   style="width: 340px;">
            <p class="help-block font-small">座机号格式如：010-84549822。若填写，本场的详情页面将显示该联系电话。<br>若不填，则系统默认设为“主办方的联系电话”。</p>
          </div>

          <div class="form-group">
            <label class="control-label">联系人邮箱：</label>
            <input type="text" class="form-control input-sm" name="notice-email" id="episode-email" placeholder="请输入联系人邮箱，可不填"
                   style="width: 340px;">
            <p class="help-block font-small">若填写，本产品的邮件通知将发送到该邮箱。<br>若不填，则系统默认设为“主办方的邮箱地址”。</p>
          </div>

          <div class="form-group form-require">
            <label class="control-label">人数：</label>

            <div class="form-inline">
              <label class="radio-inline">
                <input class="player-limit" id="player-limit-no" name="player-limit" type="radio" value="0" checked>不限人数
              </label>
              <label class="radio-inline">
                <input class="player-limit" id="player-limit-yes" name="player-limit" type="radio" value="1">限制人数
              </label>
              <input id="player-limit-count" name="playerLimitCount" class="form-control input-sm" type="text"
                     maxlength="6" placeholder="请输入人数上限" data-relate="player-limit" style="display: none;">
              <#if episode?? && (episode.status == 1 || episode.status == 2 || episode.status == 5)>
              <p class="help-block font-small">已报名${episode.playerCount}人</p>
              </#if>
            </div>
          </div>

          <#if activity.typeId == 3 || activity.typeId == 6>
            <div class="form-group form-require">
              <label class="control-label">游客信息</label>
              <div class="form-inline">
                <label class="radio-inline">
                  <input name="need-player" type="radio" value="0" checked>需要每个游客信息
                </label>
                <label class="radio-inline">
                  <input name="need-player" type="radio" value="1">只需单个游客信息
                </label>
              </div>
            </div>
          </#if>

          <#if activity.typeId == 5 || activity.typeId == 0 || activity.typeId == 1 || activity.typeId == 7>
            <div class="form-group form-require">
          <#else>
            <div class="form-group form-require" style="display: none;">
          </#if>
            <label class="control-label">是否自动核销：</label>

            <div class="form-inline">
              <label class="radio-inline">
                <#if activity.typeId == 5 || activity.typeId == 0 || activity.typeId == 1 || activity.typeId == 7>
                  <input id="verify-yes" name="verify-code" type="radio" checked>自动核销
                <#else>
                  <input id="verify-yes" name="verify-code" type="radio">自动核销
                </#if>

              </label>
              <label class="radio-inline">
                <#if activity.typeId == 5 || activity.typeId == 0 || activity.typeId == 1 || activity.typeId == 7>
                  <input id="verify-no" name="verify-code" type="radio">手动核销
                <#else>
                  <input id="verify-no" name="verify-code" type="radio" checked>手动核销
                </#if>
              </label>
              <input type="text" class="form-control input-sm" id="verify-code" size="4" maxlength="4"
                     style="display:none; width: 100px; color: red;">
            </div>

            <p class="help-block font-small">
              注意，如果设置了自动核销，报名截止时间必须小于活动开始时间。
              <br>系统会在活动开始时间点，将所有可使用订单自动核销至已完成状态。
              <br><br>如果不设置自动核销，主办方需要进行手动核销,或在活动结束时间点，
              <br>所有的可使用订单将自动核销至已完成状态。
              <br>如果主办方使用手机扫码核销功能，则在核销时需要输入上方文本框中的
              <br>可自定义的校验码，方可进行核销，如临时忘记上方核销密码亦可使用
              <br>主办方登录密码进行核销（总管理员）。
            </p>
          </div>

          <div class="form-group form-require">
            <label class="control-label">产品期间：</label>

            <div class="input-group" id="date-range" style="width: 300px;">
              <span class="input-group-addon">
                <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
              </span>
              <input type="text" class="form-control input-sm" name="timeRange" readonly placeholder="产品开始时间 ~ 产品结束时间" style="width: 300px;">
            </div>
            <input type="hidden" id="start-time" name="startTime">
            <input type="hidden" id="end-time" name="endTime">
            <p class="help-block font-small">注意，发布后，产品期间不可更改。</p>
          </div>
          <#if activity.typeId == 2>
          <div class="form-group form-require">
            <label class="control-label">预约提前时间：</label>

            <div class="form-inline">
              <label class="radio-inline">
                <input id="advance-booking-type-day" name="advance-booking-type" type="radio" value="day">天
              </label>
              <label class="radio-inline">
                <input id="advance-booking-type-hour" name="advance-booking-type" type="radio" value="hour">小时
              </label>
              &nbsp;&nbsp;&nbsp;
              <input id="advance-booking-time" name="advance-booking-time" class="form-control input-sm" type="text"
                     maxlength="6" placeholder="请输入提前时间" data-relate="player-limit" style="width: 110px;">&nbsp;<span id="advance-booking-unit"></span>
              <p class="help-block font-small">注意，发布后，预约提前时间不可更改。默认为提前一天。</p>
            </div>
          </div>
          </#if>

          <div class="form-group">
            <label class="control-label">报名开始时间：</label>
            <div class="form-inline">
              <div class="input-group" id="register-start" style="width: 150px;">
                <span class="input-group-addon">
                  <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
                </span>
                <input type="text" class="form-control input-sm" readonly placeholder="请选择报名开始时间，可不填" style="width: 180px;">
              </div>
              <span>
                &nbsp;
                <i id="clear-register-start-time" class="fa fa-trash" style="cursor: pointer;"></i>
              </span>
            </div>
            <input type="hidden" id="register-start-time" name="registerStart">
            <p class="help-block font-small">注意，发布后，报名开始时间不可更改。<br>报名开始时间不能大于报名截止时间。</p>
          </div>

          <div class="form-group form-require">
            <label class="control-label">报名截止时间：</label>

            <div class="input-group" id="register-deadline" style="width: 150px;">
              <span class="input-group-addon">
                <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
              </span>
              <input type="text" class="form-control input-sm" readonly placeholder="请选择报名截止时间" style="width: 180px;">
            </div>
            <input type="hidden" id="register-end-time" name="registerDeadline">
            <p class="help-block font-small">注意，发布后，报名截止时间不可更改。<br>报名截止时间不能大于产品结束时间。</p>
          </div>

          <div class="form-group form-require">
            <label class="control-label">报名是否需要邀请码：</label>

            <div class="form-inline">
              <label class="radio-inline">
                <input id="invite-code-no" name="invite-code" type="radio" checked>不需要
              </label>
              <label class="radio-inline">
                <input id="invite-code-yes" name="invite-code" type="radio">需要
              </label>
              <input type="text" class="form-control input-sm" id="invite-code" size="4" readonly
                     style="display: none; width: 100px; color: red;">
            </div>

            <p class="help-block font-small">
              注意，如果设置了需要邀请码，则没有邀请码，将不能报名。
              <br>您可以将邀请码分享给指定报名人。<br>发布后，邀请码不可更改。
            </p>
          </div>

          <div class="form-group form-require">
            <label>报名成功后是否支持取消报名：</label>

            <div class="form-inline">
              <label class="radio-inline">
                <input id="can-refund-no" name="can-refund" type="radio" value="0" checked>不可取消
              </label>
              <label class="radio-inline">
                <input id="can-refund-yes" name="can-refund" type="radio" value="1">可取消
              </label>

              <div class="input-group" id="refund-deadline" style="width: 150px; display: none;">
                <span class="input-group-addon">
                  <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
                </span>
                <input type="text" class="form-control input-sm" readonly placeholder="请选择取消报名截止时间"
                       style="width: 155px;">
              </div>
              <input type="hidden" id="refund-time" name="refundDeadline">
            </div>
            <p class="help-block font-small">注意，如果设置了取消报名截止时间，付费项目将进入退款流程。<br>取消报名截止时间不能小于报名截止时间。<br>发布后，不可更改。</p>
          </div>

        </form>
          <div class="form-group">
            <label id="episode-title">${filterRuler(activity.typeId,"episode_detail_intro")!''}：</label>
            <!-- style给定宽度可以影响编辑器的最终宽度 -->
            <p class="help-block font-small">
              注意，请只输入${filterRuler(activity.typeId,"episode_detail_title_head")!''}，通用信息请写到详情中。</p>
            <!--<textarea name="note" id="episode-note" class="form-control" cols="30" rows="8" style="resize: none;"></textarea>-->

            <div class="row">
              <div style="width: 400px;float: left;height: auto;">
                <script type="text/plain" id="episode-note" style="height:240px;"></script>
              </div>

              <div style="float: left;height: auto;">
                <div id="activity-design" class="activity-design clearfix" style="position: absolute;top: 680px;left: 430px;z-index: 999;display: none;">
                  <div class="app-preview">
                    <div class="app-header"></div>
                    <div class="app-entry">
                      <div class="app-config js-config-region">
                        <div class="app-field clearfix editing">
                          <h1 class="page-title"><span>手机预览</span></h1>
                          <div class="control-group">
                            <div class="custom-title text-left">
                              <h2 class="title" id="richtext-title">场次特别说明</h2>
                            </div>
                          </div>
                          <div class="control-group">
                            <div class="custom-richtext" id="richtext-box">
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <!-- Modal -->
<div class="modal fade" id="activity-preview" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">产品手机版二维码</h4>
      </div>
      <div class="modal-body" style="padding-left: 145px;">
        <img src="/server/r/static/images/qrcode.png" style="width: 300px;height: 300px;">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>
<!-- /.modal -->

      </div>
      <div class="col-lg-6">
        <div class="panel panel-success">
          <div class="panel-heading">
            <span class="form-require">${filterRuler(activity.typeId,"episode_detail_charge_type")!''}</span>

            <div class="pull-right">
              <#if activity.typeId?string != "2">
                <a id="popup-charge-type-view" href="javascript:void(0);" type="button"
                 class="btn btn-primary btn-xs">${filterRuler(activity.typeId,"episode_detail_charge_btn")!''}</a>
              <#else>
                <a id="popup-save-charge-rules" href="javascript:void(0);" type="button"
                   class="btn btn-primary btn-xs">${filterRuler(activity.typeId,"episode_detail_charge_btn")!''}</a>
                <a id="clean-charge-rules" href="javascript:void(0);" type="button"
                   class="btn btn-danger btn-xs" style="display: none;">清空规则</a>
              </#if>
            </div>
          </div>

          <!-- Modal -->
          <div class="modal fade" id="charge-type" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
               aria-hidden="true">
            <div class="modal-dialog">
              <div class="modal-content">
                <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                  <h4 class="modal-title">${filterRuler(activity.typeId,"episode_detail_charge_btn")!''}</h4>
                </div>
                <div class="modal-body">
                  <form id="charge-edit-form" role="form">
                    <div class="form-group" style="padding-left: 100px;">
                      <div class="form-group form-inline form-require">
                        <label class="control-label">${filterRuler(activity.typeId,"episode_detail_charge_name")!''}：</label>
                        <input id="tmp-charge-index" type="hidden"/>
                        <input id="tmp-charge-id" type="hidden"/>

                        <input class="form-control input-sm" id="charge-title" name="chargeTitle" maxlength="30"
                               type="text" placeholder='请输入${filterRuler(activity.typeId, "episode_detail_charge_name")!""}'
                        style="width: 180px;">

                        <p class="help-block font-small">
                          ${filterRuler(activity.typeId,"episode_detail_charge_name")!''}最多为30个字
                        </p>
                      </div>
                      <div class="form-group form-inline form-require">
                        <label class="control-label">价格：</label>
                        <input class="form-control input-sm" id="charge-price" name="chargePrice" type="text"
                               maxlength="8" placeholder="请输入价格" style="width: 100px;">

                        <p class="help-block font-small">单位：元</p>
                      </div>
                      <#if activity.typeId?string == "3" || partner?string == "true">
                      <div class="form-group form-inline form-require">
                        <label class="control-label">商品ID：</label>
                        <input class="form-control input-sm" id="charge-alias" name="chargeAlias" type="text"
                               maxlength="15" placeholder="请输入商品ID" style="width: 140px;">

                        <p class="help-block font-small">第三方系统提供的商品ID</p>
                      </div>
                      </#if>

                      <#if activity.typeId?string != "3">
                        <div class="form-group form-inline form-require">
                          <label class="control-label">购买限制：</label>
                          <label class="radio-inline">
                            <input name="set-buy-limit" id="charge-buy-limit-no" type="radio" value="0" checked>不限
                          </label>
                          <label class="radio-inline">
                            <input name="set-buy-limit" id="charge-buy-limit-yes" value="1" type="radio">限制
                          </label>
                          <input class="form-control input-sm" maxlength="6" id="charge-buy-limit" name="buyLimit"
                                 type="text" data-relate="set-buy-limit" style="display:none; width: 120px;"
                                 placeholder="请输入限购数量">
                          <p class="help-block font-small">
                            对于一个票种来说 ，一个微信用户限购几张票
                          </p>
                        </div>
                      </#if>
                      <div class="form-group form-inline form-require">
                        <label class="control-label">数量限制：</label>
                        <label class="radio-inline">
                          <input name="set-charge-limit" id="charge-limit-no" type="radio" value="0" checked>不限
                        </label>
                        <label class="radio-inline">
                          <input name="set-charge-limit" id="charge-limit-yes" value="1" type="radio">限制
                        </label>
                        <input class="form-control input-sm" maxlength="6" id="charge-limit" name="chargeLimit"
                               type="text" data-relate="set-charge-limit" style="display:none; width: 120px;"
                               placeholder="请输入数量上限">
                        <#if episode?? && (episode.status == 1 || episode.status == 2 || episode.status == 5)>
                        <p class="help-block font-small">已售出<span id="current-charge-count"></span>张</p>
                        </#if>
                      </div>

                    </div>
                  </form>
                </div>
                <div class="modal-footer">
                  <a id="charge-server-update-btn" href="javascript:void(0);" type="button"
                     class="btn btn-success" style="display: none;">修改并保存</a>

                  <a id="charge-create-btn" href="javascript:void(0);" type="button" class="btn btn-success">添加</a>
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
              </div>
              <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
          </div>
          <!-- /.modal -->

          <!-- Modal -->
          <div class="modal fade" id="charge-rules-table" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
               aria-hidden="true">
            <div class="modal-dialog" style="width: 90%;">
              <div class="modal-content">
                <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                  <h4 class="modal-title">教练教学价格</h4>
                </div>
                <div class="modal-body">
                  <form role="form">
                    <div class="form-group">
                      <table class="table table-bordered" id="charge-rules-table-content">
                      </table>
                    </div>
                  </form>
                </div>
                <div class="modal-footer">
                  <a id="charge-rules-table-update-btn" href="javascript:void(0);" type="button" class="btn btn-success">保存</a>
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
              </div>
              <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
          </div>
          <!-- /.modal -->

          <!-- /.panel-heading -->
          <div class="panel-body" id="charge-area">
            <#if activity.typeId?string != "2">
            <form role="form-group">
              <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr class="no-wrap warning">
                  <th>No.</th>
                  <th>${filterRuler(activity.typeId,"episode_detail_charge_name")!''}</th>
                  <th>价格</th>
                  <#if activity.typeId?string == "3">
                  <th>商品ID</th>
                  </#if>
                  <th>购买限制</th>
                  <th>数量限制</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody id="charge-list"></tbody>
              </table>
              <p class="help-block font-small">注意，已售出的票的名称和价格将不能更改。</p>
            </form>
            <#else>

            </#if>
          </div>
          <!-- /.panel-body -->
        </div>

        <!-- /optional-body -->
        <#if activity.typeId?string != "2">
          <div class="panel panel-success">
            <div class="panel-heading">
              <span class="form-require">${filterRuler(activity.typeId,"episode_detail_optional_type")!''}</span>

              <div class="pull-right">
                  <a id="popup-optional-type-view" href="javascript:void(0);" type="button"
                     class="btn btn-primary btn-xs">${filterRuler(activity.typeId,"episode_detail_optional_btn")!''}</a>
              </div>
            </div>

            <!-- Modal -->
            <div class="modal fade" id="optional-type" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
              <div class="modal-dialog">
                <div class="modal-content">
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">${filterRuler(activity.typeId,"episode_detail_optional_btn")!''}</h4>
                  </div>
                  <div class="modal-body">
                    <form id="optional-edit-form" role="form">
                      <div class="form-group" style="padding-left: 100px;">
                        <div class="form-group form-inline form-require">
                          <label class="control-label">${filterRuler(activity.typeId,"episode_detail_optional_name")!''}：</label>
                          <input id="tmp-optional-index" type="hidden"/>
                          <input id="tmp-optional-id" type="hidden"/>

                          <input class="form-control input-sm" id="optional-title" name="optionalTitle" maxlength="30"
                                 type="text" placeholder='请输入${filterRuler(activity.typeId, "episode_detail_optional_name")!""}'
                                 style="width: 180px;">

                          <p class="help-block font-small">
                            ${filterRuler(activity.typeId,"episode_detail_optional_name")!''}最多为30个字
                          </p>
                        </div>
                        <div class="form-group form-inline form-require">
                          <label class="control-label">价格：</label>
                          <input class="form-control input-sm" id="optional-price" name="optionalPrice" type="text"
                                 maxlength="8" placeholder="请输入价格" style="width: 100px;">

                          <p class="help-block font-small">单位：元</p>
                        </div>

                        <#if activity.typeId?string != "3">
                          <div class="form-group form-inline form-require">
                            <label class="control-label">购买限制：</label>
                            <label class="radio-inline">
                              <input name="set-buy-limit" id="optional-buy-limit-no" type="radio" value="0" checked>不限
                            </label>
                            <label class="radio-inline">
                              <input name="set-buy-limit" id="optional-buy-limit-yes" value="1" type="radio">限制
                            </label>
                            <input class="form-control input-sm" maxlength="6" id="optional-buy-limit" name="buyLimit"
                                   type="text" data-relate="set-buy-limit" style="display:none; width: 120px;"
                                   placeholder="请输入限购数量">
                            <p class="help-block font-small">
                              对于一个票种来说 ，一个微信用户限购几张票
                            </p>
                          </div>
                        </#if>
                        <div class="form-group form-inline form-require">
                          <label class="control-label">数量限制：</label>
                          <label class="radio-inline">
                            <input name="set-optional-limit" id="optional-limit-no" type="radio" value="0" checked>不限
                          </label>
                          <label class="radio-inline">
                            <input name="set-optional-limit" id="optional-limit-yes" value="1" type="radio">限制
                          </label>
                          <input class="form-control input-sm" maxlength="6" id="optional-limit" name="optionalLimit"
                                 type="text" data-relate="set-optional-limit" style="display:none; width: 120px;"
                                 placeholder="请输入数量上限">
                          <#if episode?? && (episode.status == 1 || episode.status == 2 || episode.status == 5)>
                            <p class="help-block font-small">已售出<span id="current-optional-count"></span>张</p>
                          </#if>
                        </div>

                      </div>
                    </form>
                  </div>
                  <div class="modal-footer">
                    <a id="optional-server-update-btn" href="javascript:void(0);" type="button"
                       class="btn btn-success" style="display: none;">修改并保存</a>

                    <a id="optional-create-btn" href="javascript:void(0);" type="button" class="btn btn-success">添加</a>
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  </div>
                </div>
                <!-- /.modal-content -->
              </div>
              <!-- /.modal-dialog -->
            </div>
            <!-- /.modal -->

            <!-- /.panel-heading -->
            <div class="panel-body" id="optional-area">
              <#if activity.typeId?string != "2">
                <form role="form-group">
                  <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr class="no-wrap warning">
                      <th>No.</th>
                      <th>${filterRuler(activity.typeId,"episode_detail_optional_name")!''}</th>
                      <th>价格</th>
                      <#if activity.typeId?string == "3">
                        <th>商品ID</th>
                      </#if>
                      <th>购买限制</th>
                      <th>数量限制</th>
                      <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="optional-list"></tbody>
                  </table>
                  <p class="help-block font-small">注意，已售出的增值服务项目的名称和价格将不能更改。</p>
                </form>
                <#else>

              </#if>
            </div>
            <!-- /.panel-body -->
          </div>
        </#if>

        <!-- /.panel -->
        <#if activity.typeId?string != "3" && partner?string == "false">
        <div class="panel panel-success">
          <div class="panel-heading">
            <span class="form-require">报名表</span>
          </div>

          <!-- /.panel-heading -->
          <div class="panel-body">
            <#if activity.typeId?string != "5">
              <div class="form-group">
                <div>可选：</div>
                <div class="btn-group" id="player-optional-info" role="group"></div>
              </div>
              <div class="form-group">
                <div>自定义：</div>
                <div class="btn-group" id="player-customer-info" role="group">
                  <button type="button" class="btn btn-warning btn-outline btn-sm " data-type="text">+单行文本框</button>
                  <button type="button" class="btn btn-warning btn-outline btn-sm " data-type="textarea">+多行文本框</button>
                  <button type="button" class="btn btn-warning btn-outline btn-sm " data-type="select">+下拉选择框</button>
                </div>
              </div>
              <hr>
              <div class="form-group" id="optional-items">
              </div>
              <hr>
              <div class="form-group has-warning" id="customer-items">
              </div>
              <p class="help-block font-small">注意，发布后，报名表不可更改。</p>
            <#else>
              <div class="form-group">
                <div>可选：</div>
                <div class="btn-group" id="player-optional-info" role="group"></div>
              </div>
              <hr>
              <div class="form-group" id="optional-items">
              </div>
              <p class="help-block font-small">注意，发布后，报名表不可更改。</p>
            </#if>
          </div>
          <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
        </#if>

        <div class="panel">
          <label class="control-label">上传产品群组二维码：</label>
          <input type="hidden" id="episode-wechatGroupUrl"/>
          <table class="table">
            <tr>
              <td id="img-uploader">
                <img src="" alt="" id="preview-image" style="margin: 20px 0px;" width="150" height="150">

                <div id="filePicker">选择图片</div>
              </td>
              <td class="font-small">
                <p>获取微信群二维码的方法：</p>

                <p>1. 如果没有微信群，请创建一个微信群</p>

                <p>2. 进入群聊界面，点击右上角的人像，进入“聊天信息”界面，点击“群二维码”</p>

                <p>3. 在“群二维码名片”，点击右上角菜单，选择“用邮件分享二维码”</p>

                <p>4. 输入您的邮箱地址，点击“发送”</p>

                <p>5. 用电脑登入邮箱，将收取到的二维码图片右键另存为到本地，上传此图片到本系统</p>

                <p>注意，新生成的微信群二维码将会在7天左右过期，请及时更新。</p>
              </td>
            </tr>
          </table>
        </div>

        <div>
          <a id="episode-save-btn" href="javascript:void(0);" class="btn btn-primary episode-control-btn hidden">创建</a>
          <a id="episode-return-btn" class="btn btn-default episode-control-btn hidden">返回</a>
        </div>

      </div>

    </div>

    <!-- /#page-wrapper -->

  </div>
  <!-- /#wrapper -->
  <script id="tpl-item-text" type="text/template">
    <div class="form-group" id="render-item-{{id}}">
      <label class="control-label">{{title}}</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <input type="text" class="form-control" data-id="{{id}}" placeholder="{{placeHolder}}">
    </div>
  </script>

  <script id="tpl-item-textarea" type="text/template">
    <div class="form-group" id="render-item-{{id}}">
      <label class="control-label">{{title}}</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <textarea class="form-control" data-id="{{id}}" rows="3" placeholder="{{placeHolder}}"></textarea>
    </div>
  </script>

  <script id="tpl-item-select" type="text/template">
    <div class="form-group" id="render-item-{{id}}">
      <label class="control-label">{{title}}</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <select class="form-control" data-id="{{id}}">
        <% _.each(values, function(item, index) { %>
        <option value="{{item.key}}">{{item.value}}</option>
        <% }) %>
      </select>
    </div>
  </script>

  <script id="tpl-item-file" type="text/template">
    <div class="form-group" id="render-item-{{id}}">
      <label class="control-label">{{title}}</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <input type="text" class="form-control" data-id="{{id}}" placeholder="{{placeHolder}}" readonly>
    </div>
  </script>

  <script id="tpl-customer-item-text" type="text/template">
    <div class="form-group customer-player-meta" data-id="{{id}}" data-type="text">
      <label class="control-label">单行文本框</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <div class="form-group">
        <label class="control-label">
          <input class="form-control" type="text" name="title" placeholder="单行文本框：项目名称" value="{{title}}">
        </label>
        <input type="text" class="form-control" name="placeholder" placeholder="单行文本框：提示信息" value="{{placeHolder}}">
      </div>
    </div>
  </script>

  <script id="tpl-customer-item-textarea" type="text/template">
    <div class="form-group customer-player-meta" data-id="{{id}}" data-type="textarea">
      <label class="control-label">多行文本框</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <div class="form-group">
        <label class="control-label">
          <input class="form-control" type="text" name="title" placeholder="多行文本框：项目名称" value="{{title}}">
        </label>
        <input type="text" class="form-control" name="placeholder" placeholder="多行文本框：提示信息" value="{{placeHolder}}">
      </div>
    </div>
  </script>

  <script id="tpl-customer-item-select" type="text/template">
    <div class="form-group customer-player-meta" data-id="{{id}}" data-type="select">
      <label class="control-label">下拉选择框</label>
      <% if (editMode == 0 || editMode == 1 ) { %>
      <i class="fa fa-close" onclick="hxz.removeItem(this);"></i>
      <% } %>
      <div class="form-group select-option-group">
        <label class="control-label">
          <input class="form-control" type="text" name="title" placeholder="下拉选择框：项目名称" value="{{title}}">
        </label>
        <% _.each(values, function(item, index) { %>
        <div class="row select-option">
          <div class="col-xs-1">
            <% if (index == 0) { %>
            <i class="fa fa-plus-square-o fa-2x edit-control-icon" onclick="hxz.addSelectOption(this);"></i></div>
          <% } else { %>
          <i class="fa fa-minus-square-o fa-2x edit-control-icon" onclick="hxz.removeSelectOption(this);"></i></div>
        <% } %>
        <div class="col-xs-11">
          <input class="form-control" type="text" name="option" placeholder="选项" value="{{item.value}}">
        </div>
      </div>
      <% }) %>
    </div>
    </div>
  </script>

  <script id="tpl-charge-list-item" type="text/template">
    <tr>
      <td>{{ chargeIndex }}</td>
      <td>{{ chargeName }}</td>
      <td>{{ price }}元</td>
      <#if activity.typeId?string == "3">
      <td>{{ alias }}</td>
      </#if>
      <td>{{ buyLimitDisplay  }}</td>
      <td>{{ chargeLimitDisplay }}</td>
      <td>
        <% if (editMode == 0 || editMode == 1 || editMode == 2) { %>
          <a href="javascript:void(0);" type="button" class="btn btn-primary btn-xs charge-edit" data-charge-index="{{ chargeIndex }}">编辑</a>
        <% } %>
        <% if (editMode == 0 || editMode == 1) { %>
          <a href="javascript:void(0);" type="button" class="btn btn-danger btn-xs charge-del" data-charge-index="{{ chargeIndex }}">删除</a>
        <% } %>
        <% if (editMode == 3 || editMode == 2) { %>
          <% if (valid == 1) { %>
            <a href="javascript:void(0);" type="button" class="btn btn-danger btn-xs charge-stop" data-charge-index="{{ chargeIndex }}">暂停购买</a>
          <% } else { %>
            <a href="javascript:void(0);" type="button" class="btn btn-success btn-xs charge-start" data-charge-index="{{ chargeIndex }}">开放购买</a>
          <% } %>
        <% } %>
      </td>
    </tr>
  </script>

<script id="tpl-optional-list-item" type="text/template">
  <tr>
    <td>{{ optionalIndex }}</td>
    <td>{{ chargeName }}</td>
    <td>{{ price }}元</td>
    <#if activity.typeId?string == "3">
      <td>{{ alias }}</td>
    </#if>
    <td>{{ buyLimitDisplay  }}</td>
    <td>{{ optionalLimitDisplay }}</td>
    <td>
      <% if (editMode == 0 || editMode == 1 || editMode == 2) { %>
      <a href="javascript:void(0);" type="button" class="btn btn-primary btn-xs optional-edit" data-optional-index="{{ optionalIndex }}">编辑</a>
      <% } %>
      <% if (editMode == 0 || editMode == 1) { %>
      <a href="javascript:void(0);" type="button" class="btn btn-danger btn-xs optional-del" data-optional-index="{{ optionalIndex }}">删除</a>
      <% } %>
      <% if (editMode == 3 || editMode == 2) { %>
      <% if (valid == 1) { %>
      <a href="javascript:void(0);" type="button" class="btn btn-danger btn-xs optional-stop" data-optional-index="{{ optionalIndex }}">暂停购买</a>
      <% } else { %>
      <a href="javascript:void(0);" type="button" class="btn btn-success btn-xs optional-start" data-optional-index="{{ optionalIndex }}">开放购买</a>
      <% } %>
      <% } %>
    </td>
  </tr>
</script>

  <script id="tpl-charge-rules" type="text/template">
    <% _.each(rules, function(rule, pId) { %>
    <div class="form-group" id="rule-title-{{pId}}">
      <label class="control-label">
        {{rule.name}}
      </label>
      <div class="checkbox">
        <label>
          <input class="charge-rules-no-check" data-pid="{{pId}}" type="checkbox" value="all">不选择
        </label>
      </div>
      <div class="checkbox">
        <% _.each(rule.children, function(name, id) { %>
        <label>
          <input class="charge-rules-item charge-rules-{{pId}}-item" name="{{name}}" type="checkbox" value="{{id}}">{{name}}
        </label>
        <% }) %>
      </div>
    </div>
    <% }) %>
  </script>

  <div id="hxz-background" class="background" style="display: none; "></div>
<div id="hxz-progressBar" class="progressBar" style="display: none; ">数据加载中，请稍等...</div>

<script src="/server/r/require.js"></script>
<script type="text/javascript">/*resourcemap*/
require.config({paths:{
  "r/bower_components/underscore/underscore-min": "/server/r/bower_components/underscore/underscore-min",
  "r/bower_components/jquery/dist/jquery.min": "/server/r/bower_components/jquery/dist/jquery.min",
  "r/static/js/hxz/hxz.valid": "/server/r/static/js/hxz/hxz.valid_12cc206",
  "r/static/js/hxz/hxz.rest": "/server/r/static/js/hxz/hxz.rest_07c8105",
  "r/bower_components/alertify/alertify.min": "/server/r/bower_components/alertify/alertify.min",
  "r/static/js/alertify-config": "/server/r/static/js/alertify-config_0cc8db2",
  "r/bower_components/bootstrap/dist/js/bootstrap.min": "/server/r/bower_components/bootstrap/dist/js/bootstrap.min",
  "r/bower_components/metisMenu/dist/metisMenu.min": "/server/r/bower_components/metisMenu/dist/metisMenu.min",
  "r/bower_components/select2/dist/js/select2": "/server/r/bower_components/select2/dist/js/select2",
  "r/static/js/hxz/hxz.ui": "/server/r/static/js/hxz/hxz.ui_0a7714d",
  "r/static/js/hxz/hxz": "/server/r/static/js/hxz/hxz_589b155",
  "r/vendor/umeditor/umeditor.config": "/server/r/vendor/umeditor/umeditor.config",
  "r/vendor/umeditor/umeditor": "/server/r/vendor/umeditor/umeditor",
  "r/vendor/umeditor/lang/zh-cn/zh-cn": "/server/r/vendor/umeditor/lang/zh-cn/zh-cn",
  "r/bower_components/moment/min/moment-with-zh-cn.min": "/server/r/bower_components/moment/min/moment-with-zh-cn.min",
  "r/bower_components/fex-webuploader/dist/webuploader": "/server/r/bower_components/fex-webuploader/dist/webuploader",
  "r/static/js/data/other-player-meta": "/server/r/static/js/data/other-player-meta_2394801",
  "r/bower_components/bootstrap-daterangepicker/daterangepicker": "/server/r/bower_components/bootstrap-daterangepicker/daterangepicker",
  "r/bower_components/jquery-validation/dist/jquery.validate.min": "/server/r/bower_components/jquery-validation/dist/jquery.validate.min"
}});

    var nationData = ${nationData};
    var skiFieldData = ${skiFieldData};
    window.UMEDITOR_HOME_URL = "/server/r/vendor/umeditor/";
  </script>
<script type="text/javascript" src="/server/r/static/js/app/admin-episode-edit_71daffc.js"></script>
<script>
    window.onload = function () {

      var global = window.hxz = {};

      global.removeItem = function (t) {
        var $p = $(t).parent('.form-group');
        var id = $($p).data('id');

        // 可选项目
        if (id) {
          // 证件类型 和 证件号 绑定
          if (id == 'id_card_no') {
            $p.prev().remove();
            $('#id_card_type').addClass('btn-outline').removeClass('active');
          } else if (id == 'id_card_type') {
            $p.next().remove();
            $('#id_card_no').addClass('btn-outline').removeClass('active');
          }

          $('#' + id).addClass('btn-outline').removeClass('active');
          // 邮件 删除发送报名凭证
          if (id == 'email') {
            $('#voucher-send').val(0);
          }
        }

        $p.remove();
      };

      global.addSelectOption = function (t) {
        var $p = $(t).parents('.select-option-group');
        $p.append('<div class="row select-option"><div class="col-xs-1"><i class="fa fa-minus-square-o fa-2x edit-control-icon" onclick="hxz.removeSelectOption(this);"></i></div><div class="col-xs-11"><input class="form-control" type="text" name="option" placeholder="选项"></div></div>');
      };

      global.removeSelectOption = function (t) {
        $(t).parents('.select-option').remove();
      };

    }
  </script>
</body>
</html>